package com.huilian.iotbox.admin.service;

import com.huilian.iotbox.data.common.ServerResponse;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: 少凡
 * @Date 2018/3/13 15:57
 */
public interface FileService {

    String getFileUrl();

    ServerResponse upload(MultipartFile file);

    ServerResponse delete(String fileName);

    void download(String fileName, HttpServletResponse response) throws Exception;
}
